package club.dmyang.common.exception;

import club.dmyang.common.enums.RespCodeEnums;

/**
 * Created by brss on 2018/7/14.
 */
public class HyBlogException extends RuntimeException {

    private Integer code;


    public HyBlogException(RespCodeEnums enums){
        super(enums.getMsg());
        this.code = enums.getCode();
    }

    public HyBlogException(Integer code,String message) {
        super(message);
        this.code = code;
    }
    public HyBlogException(Integer code, String message, Throwable cause) {
        super(message, cause);
    }
}
